import {
    Entity,
    Column,
    PrimaryGeneratedColumn,
    BaseEntity,
    CreateDateColumn,
  } from 'typeorm';
  
  @Entity()
  export class Chat extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;
  
    @Column("text")
    input: string;
  
    @Column({
        default: '',
    })
    img: string;
  
  
    @Column("text")
    output: string;
  
  
    //设置created_at字段
    @Column({
      type: 'timestamp',
    })
    created_at: Date;

  }
  
